package bank_access;

import java.io.Serializable;
import mware_lib.ObjectBroker;
import mware_lib.ObjectRef;

public class ManagerProxy extends ManagerImplBase {
  private ObjectRef object;

  public ManagerProxy(ObjectRef object) {
    this.object = object;
  }
  
  @Override
  public String createAccount(String owner, String branch) {
    Serializable result = ObjectBroker.instance().invokeRemoteMethod(object, "createAccount", new Serializable[] {owner, branch});
    if (result != null && result instanceof RuntimeException)
      throw (RuntimeException)result;
    return (String)result;
  }
}
